package com.mall.product.service.impl;

import com.mall.entity.TbGoodsCarousel;
import com.mall.product.mapper.GoodsCarouselMapper;
import com.mall.product.service.GoodsCarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: W
 * @date: 2021/07/27/10:57
 * Other:
 */
@Service
public class GoodsCarouselServiceImok implements GoodsCarouselService {

    @Autowired
    private GoodsCarouselMapper goodsCarouselMapper;

    @Override
    public List<TbGoodsCarousel> findByGoodsId(Long goodsId) {
        return goodsCarouselMapper.findByGoodsId(goodsId);
    }
}
